@model T2.WebSecurity.ASPMVC.ViewModel.UserProfileViewModel
         
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title></title>
</head>
<body>
	
	<script type="text/javascript">

        jQuery(document).ready(function() {
        $('#nav').show();
       
		
		 $('#Details').click(function(event) {
				$.ajax({
					url: '@Url.Content("~/UserProfile/UserProfileDetails/")' + UserId,
					cache: false,
					success: function (html) {
					$('#Main').html(html);
					return false;
				}});
			});
			 $('#Add').click(function(event) {
				$.ajax({
					url: '@Url.Content("~/UserProfile/NewUserProfileForm/")',
					cache: false,
					success: function (html) {
					$('#Dialog').html(html);
					$('#Dialog').dialog({modal:true});
					return false;
				}});
			});
			 $('#Update').click(function(event) {
				$.ajax({
					url: '@Url.Content("~/UserProfile/UpdateUserProfileForm/")' + UserId,
					cache: false,
					success: function (html) {
					$('#Dialog').html(html);
					$('#Dialog').dialog({modal:true});
					return false;
				}});
			});
			 $('#Search').click(function(event) {
				$.ajax({
					url: '@Url.Content("~/UserProfile/UserProfileSearchAccordion/")' + UserId,
					cache: false,
					success: function (html) {
					$('#Main').html(html);
					return false;
				}});
				$.ajax({
					url: '@Url.Content("~/UserProfile/UserProfileAccordion/")',
					cache: false,
					success: function (html) {
					$('#Nav').html(html);
					return false;
				}});
			});
			 $('#Membership1').click(function(event) {
					$.ajax({
						url: '@Url.Content("~/Membership/MembershipGrid/")',
						cache: false,
						success: function (html) {
						$('#Main').html(html);
						$("#userprofilelist").setGridParam({ datatype: 'json', url: "./Membership/GetBy_UserProfile_Membership_ByParent/" + UserId }).trigger("reloadGrid");
						return false;
					}});
					$.ajax({
						url: '@Url.Content("~/Membership/MembershipAccordion/")',
						cache: false,
						success: function (html) {
						$('#Nav').html(html);
						return false;
					}});
				});
				 $('#OAuthMembership1').click(function(event) {
						$.ajax({
							url: '@Url.Content("~/OAuthMembership/OAuthMembershipGrid/")',
							cache: false,
							success: function (html) {
							$('#Main').html(html);
							$("#userprofilelist").setGridParam({ datatype: 'json', url: "./OAuthMembership/GetBy_UserProfile_OAuthMembership_ByParent/" + UserId }).trigger("reloadGrid");
							return false;
						}});
						$.ajax({
							url: '@Url.Content("~/OAuthMembership/OAuthMembershipAccordion/")',
							cache: false,
							success: function (html) {
							$('#Nav').html(html);
							return false;
						}});
					});
					 $('#UsersInRoles1').click(function(event) {
							$.ajax({
								url: '@Url.Content("~/UsersInRoles/UsersInRolesGrid/")',
								cache: false,
								success: function (html) {
								$('#Main').html(html);
								$("#userprofilelist").setGridParam({ datatype: 'json', url: "./UsersInRoles/GetBy_UserProfile_UsersInRoles_ByParent/" + UserId }).trigger("reloadGrid");
								return false;
							}});
							$.ajax({
								url: '@Url.Content("~/UsersInRoles/UsersInRolesAccordion/")',
								cache: false,
								success: function (html) {
								$('#Nav').html(html);
								return false;
							}});
						});
						 $('#UserProfileData1').click(function(event) {
								$.ajax({
									url: '@Url.Content("~/UserProfileData/UserProfileDataGrid/")',
									cache: false,
									success: function (html) {
									$('#Main').html(html);
									$("#userprofilelist").setGridParam({ datatype: 'json', url: "./UserProfileData/GetBy_UserProfile_UserProfileData_ByParent/" + UserId }).trigger("reloadGrid");
									return false;
								}});
								$.ajax({
									url: '@Url.Content("~/UserProfileData/UserProfileDataAccordion/")',
									cache: false,
									success: function (html) {
									$('#Nav').html(html);
									return false;
								}});
							});
							 $('#ApplicationUser1').click(function(event) {
									$.ajax({
										url: '@Url.Content("~/ApplicationUser/ApplicationUserGrid/")',
										cache: false,
										success: function (html) {
										$('#Main').html(html);
										$("#userprofilelist").setGridParam({ datatype: 'json', url: "./ApplicationUser/GetBy_UserProfile_ApplicationUser_ByParent/" + UserId }).trigger("reloadGrid");
										return false;
									}});
									$.ajax({
										url: '@Url.Content("~/ApplicationUser/ApplicationUserAccordion/")',
										cache: false,
										success: function (html) {
										$('#Nav').html(html);
										return false;
									}});
								});
									
									$("#userprofileaccordion1").accordion();
							
							
							    }); 
							    </script>
							     <div id="userprofileaccordion1">
							    <h3><a href="#">Edit Options</a></h3>
							     <ul>
							<li><a href="#" id="Add">Add</a></li>
							<li><a href="#" id="Update">Update</a></li>
							<li><a href="#" id="Search">Search</a></li>
							<li><a href="#" id="Remove">Remove</a></li>
							<li><a href="#" id="Details">Details</a></li>
									
								 </ul>
								 
								  <h3><a href="#">Related Items</a></h3>
								  <ul>
										 <li><a href="#" id='Membership1'>Membership</a></li>
										 <li><a href="#" id='OAuthMembership1'>O Auth Membership</a></li>
										 <li><a href="#" id='UsersInRoles1'>Users In Roles</a></li>
										 <li><a href="#" id='UserProfileData1'>User Profile Data</a></li>
										 <li><a href="#" id='ApplicationUser1'>Application User</a></li>
							               
							            </ul>
							    </div>
							</body>
							</html>